﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace Pixer
{
    public class Pixel : Shape
    {
        private PointF point;

        public PointF Point
        {
            get { return point; }
            set { point = value; }
        }



        #region Shape 成员

        override public void paint(Graphics g)
        {
            g.DrawString("兰州烧饼", new Font(FontFamily.GenericMonospace, 20.2F, FontStyle.Bold, GraphicsUnit.Pixel), Brushes.Black, point);
        }



        override public void paint(Bitmap b)
        {
            b.SetPixel((int)point.X, (int)point.Y,lineColor);
        }

        #endregion

    }
}
